package cn.tedu.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringRunner {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext(SpringConfig.class);
        UserController userController =
                (UserController)ac.getBean("userController");
        userController.reg();
        System.out.println(userController);
        ac.close();
    }
}
